package day06;

/**
 * 规定：二维数组分为外层数组的元素，内层数组的元素
 *
 * @author Smartloe
 * @create 2021-04-23 21:32
 */
public class ArrayTest3 {
    public static void main(String[] args) {
        int[][] arr = new int[4][3];
        System.out.println(arr[0]);//[I@1540e19d
        System.out.println(arr);//[[I@677327b6
        System.out.println(arr[0][0]);//0

        System.out.println("*************************");
        float[][] arr1 = new float[4][3];
        System.out.println(arr1[0]);//[F@14ae5a5
        System.out.println(arr1);//[[F@7f31245a
        System.out.println(arr1[0][0]);//0.0

        System.out.println("*************************");
        String[][] arr2 = new String[4][2];
        System.out.println(arr2[1]);//[Ljava.lang.String;@6d6f6e28
        System.out.println(arr2[1][1]);//null

        System.out.println("*************************");
        double[][] arr3 = new double[4][];
        System.out.println(arr3[1]);//null
//        System.out.println(arr3[1][0]);//报错

    }
}
